<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.getSession().setMaxInactiveInterval(7200);
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web漏洞检测评估平台_用户登录</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #858585;
	overflow:hidden;
}
.dd{
	margin:auto;
	width:458px;
}
.ii{
    border:0px;  
    background-image:url(pattern/cm/image/button.png);  
    background-repeat:no-repeat;  
    background-position-x:right;  
    padding-left:3px;  
    padding-right:3px;  
    height:50px;  
    margin-left: 5px;
    font-size:30px; 
    text-align:center; 
    width:399px;  

}
.login{
   	border:0px;  
    background-image:url(pattern/cm/image/login/loginbutton.png);  
    background-repeat:no-repeat;  
    background-position-x:right;  
    padding-left:3px;  
    padding-right:3px;  
    height:50px;  
    margin-left: 23px;
    font-size:30px; 
    text-align:center; 
    width:149px;  
    font-family: "微软雅黑";
    cursor:pointer
}
table {
	width:458px;
    text-align:center;
	background-image: url(pattern/cm/image/login/login.png);
	background-repeat:no-repeat;
	font-family: "方正大黑简体";
	

}
.font1{
 	border:0px;  
    background-image:url(pattern/cm/image/button.png);  
    background-repeat:no-repeat;  
    background-position-x:right;  
    padding-left:3px;  
    padding-right:3px;  
    height:50px;  
    margin-left: 5px;
    font-size:30px; 
    text-align:center; 
    width:399px;  
    color:#aaaaaa;
   }
.font2
   {
    border:0px;  
    background-image:url(pattern/cm/image/button.png);  
    background-repeat:no-repeat;  
    background-position-x:right;  
    padding-left:3px;  
    padding-right:3px;  
    height:50px;  
    margin-left: 5px;
    font-size:30px; 
    text-align:center; 
    width:399px;  
    color:black;
   }
.STYLE3 {font-size: 12px; color: #FFFFFF; }
.STYLE4 {
	color: #FFFFFF;
	font-family: "方正大黑简体";
	font-size: 50px;
}
-->
</style>
<!--如果该页面在子框架中显示的时候，需要它回到父级框架显示-->
<script language="javascript">

  if (top.location != self.location) {
     top.location=self.location; 
  } 
</script>
</head>
<body >
<form action="<%=path%>/login.action" method="post" >
<div class="dd">
<div style="height:150px"></div>
<table>
                  <tr height=100px>
                  </tr>
                  <tr>
                    <td ><input class="ii" id="username" name="username" type="text" value="请输入用户名" class="font1" onblur="if(this.value==''){this.value='请输入用户名';this.className='font1'}" onfocus="if(this.value==this.defaultValue){this.value='';this.className='font2'}"/></td>
                  </tr> 
                   <tr height=30px>
                   <td></td>
                  </tr>
                  <tr>
                    <td ><input class="ii" id="password" name="password" type="password" value="请输入密码" class="font1" onblur="if(this.value==''){this.value='请输入密码';this.className='font1'}" onfocus="if(this.value==this.defaultValue){this.value='';this.className='font2'}"/></td>
                   </tr>
                  <tr height=30px>
                  </tr>
                 <tr>

                    <td align="left" width=200><input class="login" type="submit"  value="登    陆"  />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--  <input type="button" value="忘记密码">-->
                               <input class="login" type="button"  onClick="window.location.href='<%=path%>/page/function/user/add.jsp'" value="注册"  />      
                    </td>
                
                 </tr>
               
                  <tr height=28>
                  
                    <td ><div style="color:red"><s:fielderror></s:fielderror></div>
                    </tr>
                   
                
</table>
</div>
</form>
</body>
</html>
